package cn.parus.service;

import cn.parus.entity.FileShareLink;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @Author: Axel
 * @Description: TODO
 **/
public interface FileShareLinkService extends IService<FileShareLink> {

    /**
     * 查询文件分享记录
     * @param ownerId
     * @param current
     * @param size
     * @return
     */
    Page<FileShareLink> searchAllFileShare(String ownerId, Integer current, Integer size);

    /**
     * 创建共享链接
     * @param fileShareLink
     */
    FileShareLink createNewShareFile(FileShareLink fileShareLink);

    /**
     * 删除共享链接
     * @param fileShareLinkId
     */
    void deleteFileShareLink(String fileShareLinkId);
}
